package com.atguigu.gulimall.auth.service;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.auth.vo.LoginVo;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;

import javax.servlet.http.HttpSession;

/**
 * @DESCRIPTION: 登录service
 * @author: zr
 * @DATE: 2022/12/31 11:37
 */
public interface LoginService {
    /**
     * 发送验证码
     *
     * @param phone
     * @return
     */
    R sendCode(String phone);

    /**
     * 调用远程服务进行登录
     * @param loginVo
     * @param redirectAttributes
     * @return
     */
    String login(LoginVo loginVo, HttpSession session, RedirectAttributes redirectAttributes);
}
